package com.hand.springbootdemo.domain.repository.impl;

import com.hand.springbootdemo.domain.entity.Student;
import com.hand.springbootdemo.domain.mapper.StudentMapper;
import com.hand.springbootdemo.domain.repository.StudentRepository;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * @author hand-wd
 */
@Repository
public class StudentRepositoryImpl implements StudentRepository {
    @Resource
    private StudentMapper studentMapper;
    @Override
    public Student selectById(Long id) {
        return studentMapper.selectById(id);
    }
}
